<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FlashCookie操作</title>
<script type="text/javascript" src="http://shmshz.googlecode.com/svn/trunk/assets/js/build/Shmshz.cookie.js"></script>
</head>
<body>
<script type="text/javascript">
var Sh_fl=new Sh_Cookie();
//Sh_fl.swfpath="flash2/Shmshz.cookie.swf";
Sh_fl.reset();
</script>
<input id="test" type="text" /><br/>
<input type="button" value="读取Cookie" onclick="alert(Sh_fl.get('b'));"; /><br/> 
<input type="button" value="获取文件名" onclick="alert(Sh_fl.getName());"; /><br/>
<input type="button" value="是否存在" onclick="alert(Sh_fl.isexist('b'));"; /><br/>
<input type="button" value="设置Cookie" onclick="alert(!!Sh_fl.set('b',document.getElementById('test').value)?'成功':'失败');"; /><br/>
<input type="button" value="是否过期单个Cookie" onclick="alert(Sh_fl.isTimeOut());"; /><br/>
<input type="button" value="过期时间Cookie" onclick="alert(Sh_fl.getTimeOut('b'));"; /><br/> 
<input type="button" value="清除过期的Cookie" onclick="Sh_fl.clearTimeOut();"; /><br/> 
<input type="button" value="删除单个Cookie" onclick="Sh_fl.remove('b');"; /><br/>
<input type="button" value="清除所有Cookie" onclick="Sh_fl.clear();"; /><br/>
	</body>
</html>
